package com.tingyukeji.fastpay.ui.fragment;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.tingyukeji.fastpay.R;
import com.tingyukeji.fastpay.base.BaseFragment;
import com.tingyukeji.fastpay.databinding.MyFragmentBinding;
import com.tingyukeji.fastpay.my.activity.BankListActivity;

/**
 * Created by Administrator on 2018/5/31.
 */

public class MyFragment extends BaseFragment {
    private MyFragmentBinding binding;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        if (null == rootView) {
            binding = DataBindingUtil.inflate(inflater, R.layout.my_fragment, container, false);
            rootView = binding.getRoot();
            initView();
        } else {
            ViewGroup parent = (ViewGroup) rootView.getParent();
            if (parent != null) {
                parent.removeView(rootView);
            }
        }
        return rootView;
    }

    @Override
    protected void initView() {
        super.initView();
        binding.llBankCard.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                goActivity(BankListActivity.class);
            }
        });
        inData();
    }

    private void inData() {

    }
}
